package cn.edu.fzu.delivery.domain.entity;

import cn.edu.fzu.delivery.domain.enums.NetworkCourierStatusEnum;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

/**
 * 物流
 *
 * @author fangxin
 * @date 2022/11/3
 */
@Data
public class Logistics {

    private Long                     id;
    //上级id
    private Logistics                parent;
    //网点
    private Network                  network;
    //到达时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date                     createTime;
    //离开时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date                     leaveTime;

    private NetworkCourierStatusEnum status;
}
